package org.smart4j.framework.util;

import org.apache.commons.lang3.StringUtils;

/**
 * Created by huangxiaofeng on 2015/11/14.
 */
public final class StringUtil {
    /**
     * 判断字符串是否为空
     */
    public static boolean isEmpty(String str){
        if(str!=null){
            str=str.trim();
        }
        return StringUtils.isEmpty(str);
    }
    public static boolean isNotEmpty(String str){
        return !isEmpty(str);
    }
}
